wc -l ~/Test1/metals.txt | awk "{print \"参赛国家/地区数量: \"\$1}"
grep -E "中国|中国香港|中国台北" ~/Test1/metals.txt | sort -t"," -k4 -nr | awk -F"," "{print \$1 \" 金牌:\" \$2 \" 银牌:\" \$3 \" 铜牌:\" \$4 \" 总数:\" \$5}"
sort -t"," -k4 -nr ~/Test1/metals.txt | head -n 5 | cut -d"," -f1
sort -t',' -k2 -nr metals.txt | head -n5 | awk -F',' '{print $1 " 金牌数:" $2; sum+=$2} END{print "金牌总数:", sum}'
